import { Col } from 'antd';
import { localFieldConfig } from './Adress.config';
export { localFieldConfig } from './Adress.config';

import FormItemInput from '@/pages/Myantd/Form/FormItemInput';
const Adress = ({ FieldConfig, layout }: any) => {
  const fieldProps = FieldConfig?.['field-props'];

  return (
    <Col {...layout}>
      <FormItemInput
        isLine={true}
        labelName={FieldConfig?.field}
        disabled={fieldProps?.disabled === 'Y'}
        required={fieldProps?.required === 'Y'}
      />
    </Col>
  );
};

Adress.displayName = localFieldConfig.field;
export default Adress;
